package cn.bearspark.api.vo.func.like;

import cn.bearspark.api.validation.Enumeration;
import cn.bearspark.common.enumeration.LikedEnum;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 动态点赞/取消点赞的请求的视图对象
 *
 * @author f
 */
@Data
public class HappeningReqVO {

    /**
     * 待点赞/取消点赞的动态 id
     */
    @NotNull
    private Long happeningId;

    /**
     * 点赞还是取消点赞
     *
     * @see LikedEnum
     */
    @Enumeration(LikedEnum.class)
    private Integer liked;

}
